package itsm.isperp.module.service.app;

import itsm.isperp.framework.service.BaseService;
import itsm.isperp.module.entity.app.AppUserCustomStyle;
import itsm.isperp.module.repository.app.AppUserCustomStyleMapper;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

/**
 * 
 * 
 * @author lizx
 * @date 2013-10-16
 * @version V1.0
 */
@Service
public class AppUserCustomStyleService extends BaseService<AppUserCustomStyle> {

	@Resource
	protected AppUserCustomStyleMapper appUserCustomStyleMapper;

	@Override
	public AppUserCustomStyleMapper getRepository() {
		return this.appUserCustomStyleMapper;
	}

	public void deleteByUsername(String username) {
		this.getRepository().deleteByUsername(username);
	}

	public AppUserCustomStyle findByUsername(String username) {

		return this.getRepository().findByUsername(username);

	}

}
